//
//  SectionsViewController.h
//  Sections
//
//  Created by KaiKai on 11-8-4.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SectionsViewController : UIViewController
<UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate>
{
//    NSDictionary *names;
//    NSArray *keys;
    
    IBOutlet UITableView *table;
    IBOutlet UISearchBar *search;
    NSDictionary *allNames;
    NSMutableDictionary *names;
    NSMutableArray *keys;
}

@property (nonatomic, retain) NSMutableDictionary *names;
@property (nonatomic, retain) NSMutableArray *keys;

- (void)resetSearch;
- (void)handleSearchForTerm:(NSString *)searchTerm;

@end
